package com.wjs.gulimall.gulimallorder.feigin;

import com.atguigu.common.utils.R;
import com.wjs.gulimall.gulimallorder.vo.WareSkuLockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("gulimall-ware")
public interface WareFeginService {
    @PostMapping("/gulimallware/waresku/hasstock")
    public R getSkusHasstock(@RequestBody List<Long> skuIds);

    @GetMapping("/gulimallware/wareinfo/fare")
    public R fare(@RequestParam("addrId")Long addrId);

    @PostMapping("/gulimallware/waresku/lock/order")
    public R orderLockStocks(@RequestBody WareSkuLockVo vo);
}
